package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;


/**
 * 模块配置管理表-实体
 * @author zfsn
 * @date 2023-4-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "模块配置管理表", description = "")
@TableName("conf_module_management")
public class ConfModuleManagement extends BasePage<ConfModuleManagement> {

	/**
	 * null
	 */
	@ApiModelProperty(value = "", notes = "null")
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 *
	 */
	@ApiModelProperty(value = "模块ID", notes = "")
	private Integer moduleId;

	/**
	 * 即部署ip
	 */
	@ApiModelProperty(value = "模块IP", notes = "即部署ip")
	private String moduleIp;

	/**
	 *  动态端口格式：（<50）,即部署端口
	 */
	@ApiModelProperty(value = "端口", notes = " 动态端口格式：（<50）,即部署端口")
	private String modulePort;

	/**
	 * 前台'BPM_WEB_MAIN',实时流'BPM_RT_FLOW',数据重组'BPM_DATA_SERVER',后台配置'BPM_WEB_CONFIG'
	 */
	@ApiModelProperty(value = "模块名称，探针'BPM_PROBE'", notes = "前台'BPM_WEB_MAIN',实时流'BPM_RT_FLOW',数据重组'BPM_DATA_SERVER',后台配置'BPM_WEB_CONFIG'")
	private String moduleName;

	/**
	 *  0：否 1：是
	 */
	@ApiModelProperty(value = "运行状态", notes = " 0：否 1：是")
	private Integer runningStatus;

	/**
	 * -1:失败 0：初始化 1：成功 2：更新中
	 */
	@ApiModelProperty(value = "更新配置标记", notes = "-1:失败 0：初始化 1：成功 2：更新中")
	private Integer updateConfigFlag;

	/**
	 *
	 */
	@ApiModelProperty(value = "更新信息", notes = "")
	private String updateMessage;

	/**
	 *
	 */
	@ApiModelProperty(value = "心跳时间", notes = "")
	private LocalDateTime runningHeartTime;

	/**
	 *
	 */
	@ApiModelProperty(value = "最后修改时间", notes = "")
	private LocalDateTime updateTime;

	/**
	 *
	 */
	@ApiModelProperty(value = "配置更新时间", notes = "")
	private LocalDateTime moduleUpdateTime;

	/**
	 * 1更新IP漂移配置
	 */
	@ApiModelProperty(value = "默认0更新所有配置", notes = "1更新IP漂移配置")
	private Integer updateFunction;

}
